<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="Keywords" content=""/>
    <meta name="Description" content=""/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="expires" content="0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no" />
    <!--禁止用户在手机上屏幕页面-->
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
     <link rel="stylesheet" type="text/css" href="layui/css/layui.css"/>
    <script src="js/rem.js"></script>
    <link rel="stylesheet" href="css/main.css" />
    <title>APP下载</title>
</head>  
<body> 
	<div class="bj-img flex flexv">
		<div class="top-logo">
			 <img src="img/logo.png"> 
		</div>
		
        <div class="bj-img-inner flex flexv">
            <a href="/download/ysz.apk" class="load-link one" id="android">Android下载</a>
            <a href="https://apps.apple.com/cn/app/id1481566505" class="load-link one" id="ios">iPhone下载</a>
        </div>
	</div>
	
	<div class="cover">
        <div class="cover-inner">
          <img src="img/live.png">
       </div>
   </div>
    
   <script src="js/jquery-1.8.3.min.js"></script>
   <script src="layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script>
    	 /*微信下载判断*/
        $(document).ready(function(){
        	layui.use('layer',function(){
        		var layer = layui.layer;
        	})
        	$.ajax({
                type:"post",
                url:"http://666.wantaobaby.com/index.php?m=Home&c=Mine&a=version_update",
                dataType: 'json',
                data:{},
                success:function (data) {
                    $("#android").attr('href',data.data.android.share_url);
                    $("#ios").attr('href',data.data.ios.share_link);
                }
            });
        	
            function is_weixin() {
                    var ua = window.navigator.userAgent.toLowerCase();
                    if (ua.match(/MicroMessenger/i) == "micromessenger") {
                        return true;
                    } else {
                        return false;
                    }
                }
            var isWeixin = is_weixin();
            if(isWeixin){
                $(".cover").show();
                $("body").on('touchmove',function(event){event.preventDefault();});
            }
            
            
        })
    </script>
</body>
</html>